﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Globalization;
using Sector7.Framework.Enums;

namespace Sector7.Restaurant.Modules.STAT.Utility
{
    public class ChargeItemToStringConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            ChargeItemType chargeItem = (ChargeItemType)value;
            switch (chargeItem)
            {
                case ChargeItemType.Sales:
                    return "销售费用";
                case ChargeItemType.Purchases:
                    return "采购费用";
                default:
                    return "其它费用";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
